@import "common";
//头部
$header-bg: #303643;
$header-hover: #40485b;
$header-line: #2a2f32;
$header-height: 64px;
//侧边栏
$sidebar-bg: #304156;
$sidebar-sub-bg: #1f2d3d;
$sidebar-hover: #001528;
$sidebar-width: 200px;
$sidebar-width-min: 64px;
$subMenuBg: #1f2d3d;
$menuHover: #001528;
// Element-UI 的table 组件出现表格线条不对齐的问题
body .el-table th.gutter {
    display: table-cell !important
}

.layout-main {
    display: flex;
    //隐藏侧边栏
    &.hidderSidebar {
        .layout-sidebar-container {
            width: $sidebar-width-min;
        }
        .logo_wrapper {
            width: $sidebar-width-min;
            transition: all 0.28s ease-out;
        }
        .layout-container {
            padding-left: $sidebar-width-min;
        }
    }
    .logo_wrapper {
        @include center;
        height: 64px;
        width: $sidebar-width;
        font-size: 22px;
        font-weight: bold;
        background: $sidebar-bg;
        transition: all 0.28s ease-out;
    }
    .layout-sidebar-container {
        background: $sidebar-bg;
        position: fixed;
        top: 0;
        bottom: 0;
        width: $sidebar-width;
        overflow: hidden;
        color: #fff;
        overflow-y: auto;
        z-index: 1000;
        transition: all 0.28s ease-out;
        margin-top: 64px;
        &::-webkit-scrollbar {
            display: none;
        }
        .el-menu {
            width: 100% !important;
            min-height: 100%;
            border-right: none;
            box-sizing: border-box;
        }
        .el-submenu .el-menu-item {
            min-width: 180px !important;
            background-color: $subMenuBg !important;
            &:hover {
                background-color: $menuHover !important;
            }
        }
    }
    .layout-container {
        box-sizing: border-box;
        position: absolute;
        top: 0;
        bottom: 0;
        padding-left: $sidebar-width;
        width: 100%;
        transition: all 0.28s ease-out;
        .layout-header-container {
            display: flex;
            height: $header-height;
            background: #fff;
            .header-left {
                flex: 1;
                @include left;
                .sidebar-trigger {
                    box-sizing: border-box;
                    align-self: center;
                    padding: 0 10px;
                    i {
                        font-size: 32px;
                        cursor: pointer;
                        color: #aeb9c2;
                        transition: all 0.3s;
                    }
                    .t1 {
                        transform: rotateZ(-180deg);
                    }
                }
                .custom-bread-crumb {
                    margin-left: 10px;
                }
            }
            .header-right {
                flex: 1;
                @include right;
            }
        }
        .layout-content-container {
            .content-wrapper {
                position: relative;
                box-sizing: border-box;
                width: 100%;
                height: 100%;
                overflow: auto;
                background: #f5f7f9;
                .container {
                    padding: 15px;
                    height: "calc(100% - 80px)";
                    overflow: auto;
                    .el-card__body {
                        padding: 10px;
                    }
                    /** 搜索工具栏 */
                    .search-bar {
                        display: flex;
                        justify-content: space-between;
                        .left {
                            display: flex;
                            justify-content: flex-start;
                            align-items: center;
                            .searchForm {
                                .el-form-item {
                                    margin-bottom: 10px;
                                    margin-right: 0px;
                                    .el-form-item__content {
                                        line-height: 0;
                                        margin-right: 10px;
                                    }
                                }
                                button {
                                    margin-left: 0;
                                    margin-right: 10px;
                                    margin-bottom: 10px;
                                }
                                .el-button-group {
                                    button {
                                        margin-right: -1px;
                                    }
                                }
                            }
                            button {
                                margin-left: 0;
                                margin-right: 10px;
                                margin-bottom: 10px;
                            }
                            .el-button-group {
                                button {
                                    margin-right: -1px;
                                }
                            }
                        }
                        .right {
                            display: flex;
                            justify-content: flex-start;
                            align-items: flex-start;
                            button {
                                margin-bottom: 10px;
                            }
                        }
                    }
                    .btn-action {
                        margin-bottom: 10px;
                    }
                    /** 列表分页工具栏 */
                    .pagination {
                        @include left;
                        margin: 10px;
                        overflow: hidden;
                    }
                }
            }
        }
    }
}

// 操作，单条件查询
.simple_search_bar_wrapper .el-input-group__prepend .el-select .el-input {
    width: 120px;
}

.input-with-select .el-input-group__prepend {
    background-color: #fff;
}

// 表格操作按钮
.table_action {
    display: flex;
    justify-content: center;
}

// 表格操作dropdown
.table_action_dropdown .el-dropdown .el-dropdown__caret-button {
    height: 32px;
}


.table_action_dropdown .el-dropdown .el-dropdown-link {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #409EFF;
    font-size: 12px;
    height: 32px;
}

.table_action_dropdown .el-icon-arrow-down {
    font-size: 12px;
}

.table_popover {
    margin-left: 10px;
    font-size: 12px;
    color: #409EFF;
}

.table_popover_tools {
    display: flex;
    justify-content: center;
    align-items: center;
}

// 单条件查询
.simple_search_bar_wrapper {
    margin-bottom: 10px;
    .searchForm {
        .el-form-item {
            margin-bottom: 0px;
            margin-right: 0px;
            .el-form-item__content {
                line-height: 0;
            }
        }
    }
    .btn_wrapper {
        display: flex;
        justify-content: flex-end;
    }
}

// 多条件组合查询
.condition_search_wrapper {
    .conditionSearchForm {
        .el-form-item {
            margin-bottom: 0px;
            margin-right: 0px;
            .el-form-item__content {
                line-height: 0;
            }
        }
    }
    .search_btn {
        display: flex;
        justify-content: flex-end;
    }
}

// 文件上传，缩略图取出高度100%
.upload .el-upload-list--picture-card .el-upload-list__item-thumbnail {
    height: auto;
}

// 地图坐标拾取搜索提示层级
.amap-sug-result {
    z-index: 9999999;
    .auto-item {
        padding: 8px 5px;
    }
}

// 子页面返回栏
.headerBack {
    padding: 20px 20px 20px 20px;
    background: #fff;
}

//操作栏样式
.operate-container {
    margin-top: 20px;
}

.operate-container .btn-add {
    float: right;
}

// 条件过滤
.filter_container {
    margin-bottom: 10px;
}

// 数据操作
.operate_container {
    margin-bottom: 10px;
    .wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        .searchKeyword {
            .el-form-item {
                margin: 0;
            }
        }
    }
}